using System;
using System.Data;
using System.Collections.Generic;
using System.ServiceModel;
using eTMS.DAO;
namespace eTMS.Services{
	/********************************BEGIN DiemMonHocService****************************************/
	///<summary>
	/// <para>Author: Auto generated class by CSharp Code Generator v2.0</para>
	/// <para>Date:27/10/2011 56:03:12</para>
	/// <para>Class Name: DiemMonHocService</para>
	/// <para>Description: </para>
	///</summary>

	
	public partial class DiemMonHocService : IDiemMonHocService{


		#region Select functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectOne</para>
		/// <para>Input: DiemMonHoc_ID</para>
		/// <para>Output: DiemMonHocEntity</para>
		///</summary>
		public DiemMonHocEntity SelectOne(int DiemMonHoc_ID){
			DiemMonHocDAO dao = new DiemMonHocDAO();
			return dao.SelectOne(DiemMonHoc_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectAll</para>
		/// <para>Input: </para>
		/// <para>Output: List of DiemMonHocEntity</para>
		///</summary>
		public List<DiemMonHocEntity> SelectAll(){
			DiemMonHocDAO dao = new DiemMonHocDAO();
			return dao.SelectAll();
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectAllDS</para>
		/// <para>Input: </para>
		/// <para>Output: DataSet</para>
		///</summary>
		public DataSet SelectAllDS(){
			DiemMonHocDAO dao = new DiemMonHocDAO();
			return dao.SelectAllDS();
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectAll</para>
		/// <para>Input: </para>
		/// <para>Output: List of DiemMonHocEntity</para>
		///</summary>
		public List<DiemMonHocEntity> SelectAllFilter(string strFilter){
			DiemMonHocDAO dao = new DiemMonHocDAO();
			return dao.SelectAllFilter(strFilter);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectAllDS</para>
		/// <para>Input: </para>
		/// <para>Output: DataSet</para>
		///</summary>
		public DataSet SelectAllDSFilter(string strFilter){
			DiemMonHocDAO dao = new DiemMonHocDAO();
			return dao.SelectAllDSFilter(strFilter);
		}
		#endregion

		#region Insert functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: Save</para>
		/// <para>Input: DiemMonHocEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Save(DiemMonHocEntity o){
			DiemMonHocDAO dao = new DiemMonHocDAO();
			return dao.Save(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: Save</para>
		/// <para>Input: DiemMonHocEntity</para>
		/// <para>Output: DiemMonHocEntity</para>
		///</summary>
		public DiemMonHocEntity SaveRet(DiemMonHocEntity o){
			DiemMonHocDAO dao = new DiemMonHocDAO();
			dao.Save(o);
			return o;
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SaveList</para>
		/// <para>Input: List of DiemMonHocEntity</para>
		/// <para>Output: </para>
		///</summary>
		public void SaveList(List<DiemMonHocEntity> list){
			DiemMonHocDAO dao = new DiemMonHocDAO();
			dao.SaveList(list);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SaveListRet</para>
		/// <para>Input: List of DiemMonHocEntity</para>
		/// <para>Output: List of DiemMonHocEntity</para>
		///</summary>
		public List<DiemMonHocEntity> SaveListRet(List<DiemMonHocEntity> list){
			this.SaveList(list);
			return list;
		}
		#endregion

		#region Update functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: Update</para>
		/// <para>Input: DiemMonHocEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Update(DiemMonHocEntity o){
			DiemMonHocDAO dao = new DiemMonHocDAO();
			return dao.Update(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateList</para>
		/// <para>Input: List of DiemMonHocEntity</para>
		/// <para>Output: </para>
		///</summary>
		public void UpdateList(List<DiemMonHocEntity> list){
			DiemMonHocDAO dao = new DiemMonHocDAO();
			dao.UpdateList(list);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateSinhVienMonHoc_ID</para>
		/// <para>Input: NewSinhVienMonHoc_ID,DiemMonHoc_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateSinhVienMonHoc_ID(int NewSinhVienMonHoc_ID,int DiemMonHoc_ID){
			DiemMonHocDAO dao = new DiemMonHocDAO();
			return dao.UpdateSinhVienMonHoc_ID(NewSinhVienMonHoc_ID,DiemMonHoc_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateMonHoc_ID</para>
		/// <para>Input: NewMonHoc_ID,DiemMonHoc_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateMonHoc_ID(int NewMonHoc_ID,int DiemMonHoc_ID){
			DiemMonHocDAO dao = new DiemMonHocDAO();
			return dao.UpdateMonHoc_ID(NewMonHoc_ID,DiemMonHoc_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateSinhVien_ID</para>
		/// <para>Input: NewSinhVien_ID,DiemMonHoc_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateSinhVien_ID(int NewSinhVien_ID,int DiemMonHoc_ID){
			DiemMonHocDAO dao = new DiemMonHocDAO();
			return dao.UpdateSinhVien_ID(NewSinhVien_ID,DiemMonHoc_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateLanThi</para>
		/// <para>Input: NewLanThi,DiemMonHoc_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateLanThi(Byte NewLanThi,int DiemMonHoc_ID){
			DiemMonHocDAO dao = new DiemMonHocDAO();
			return dao.UpdateLanThi(NewLanThi,DiemMonHoc_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateDiem</para>
		/// <para>Input: NewDiem,DiemMonHoc_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateDiem(Decimal NewDiem,int DiemMonHoc_ID){
			DiemMonHocDAO dao = new DiemMonHocDAO();
			return dao.UpdateDiem(NewDiem,DiemMonHoc_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateLoaiDiem_ID</para>
		/// <para>Input: NewLoaiDiem_ID,DiemMonHoc_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateLoaiDiem_ID(int NewLoaiDiem_ID,int DiemMonHoc_ID){
			DiemMonHocDAO dao = new DiemMonHocDAO();
			return dao.UpdateLoaiDiem_ID(NewLoaiDiem_ID,DiemMonHoc_ID);
		}
		#endregion

		#region Delete functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: Delete</para>
		/// <para>Input: DiemMonHocEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Delete(DiemMonHocEntity o){
			DiemMonHocDAO dao = new DiemMonHocDAO();
			return dao.Delete(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: DeleteByID</para>
		/// <para>Input: DiemMonHoc_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool DeleteByID(int DiemMonHoc_ID){
			DiemMonHocDAO dao = new DiemMonHocDAO();
			return dao.DeleteByID(DiemMonHoc_ID);
		}
		#endregion

		#region Select join to LoaiDiemSinhVienMonHoc functions
		#endregion

		#region Select join to LoaiDiem functions
		#endregion

		#region Select join to SinhVienMonHoc functions
		#endregion

		#region Select,delete by DiemMonHoc_ID functions
		#endregion

		#region Select,delete by SinhVienMonHoc_ID functions
		#endregion

		#region Select,delete by LoaiDiem_ID functions
		#endregion
	}
	/*****************************************************************************************************/
	/**********************************END DiemMonHocWebServiceBase*****************************************/
	/*****************************************************************************************************/
}

